import {request} from '@umijs/max';
import * as API from "@/services";


/** 专家 分页检索请求 */
export async function queryFrontAuthors(params: API.FrontAuthorPageQueryParams): Promise<API.RespPageResult<API.FrontAuthor>> {
  return request('/api/v1/front/author', {
    params,
  });
}

/** 专家 详情请求 */
export async function queryFrontAuthor(bizId: API.EntityId): Promise<API.RespResult<API.FrontAuthor>> {
  return request(`/api/v1/front/author/${bizId}`);
}

